package com.ssy.lingxi.system.model.dto.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 通用 - 停用/启用 - DTO
 * @author fhj
 * @version 2.0.0
 * @date 2020/9/17
 */
@Data
public class CommonStateDTO {

    @NotNull(message = "主键id不能为空")
    @ApiModelProperty(value = "主键id")
    private Long id;

    @NotNull(message = "状态不能为空")
    @ApiModelProperty("状态：1.启用 0.停用")
    private Integer state;
}
